(t=>{var p=Array.prototype.slice;function e(){}function i(a){var h;if(a)return h="undefined"==typeof console?e:function(t){console.error(t)},a.bridget=function(t,e){var i,r,s;(i=e).prototype.option||(i.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),r=t,s=e,a.fn[r]=function(e){if("string"!=typeof e)return this.each(function(){var t=a.data(this,r);t?(t.option(e),t._init()):(t=new s(this,e),a.data(this,r,t))});for(var t=p.call(arguments,1),i=0,o=this.length;i{var t=document.documentElement,e=function(){};function o(t){var e=i.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,i){t.addEventListener(e,i,!1)}:t.attachEvent&&(e=function(e,t,i){e[t+i]=i.handleEvent?function(){var t=o(e);i.handleEvent.call(i,t)}:function(){var t=o(e);i.call(e,t)},e.attachEvent("on"+t,e[t+i])});var n=function(){},t=(t.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:t.detachEvent&&(n=function(e,i,o){e.detachEvent("on"+i,e[i+o]);try{delete e[i+o]}catch(t){e[i+o]=void 0}}),{bind:e,unbind:n});"function"==typeof define&&define.amd?define("eventie/eventie",t):"object"==typeof exports?module.exports=t:i.eventie=t})(window),function(){function t(){}var e=t.prototype,i=this,o=i.EventEmitter;function r(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function n(t){return function(){return this[t].apply(this,arguments)}}e.getListeners=function(t){var e,i,o=this._getEvents();if(t instanceof RegExp)for(i in e={},o)o.hasOwnProperty(i)&&t.test(i)&&(e[i]=o[i]);else e=o[t]||(o[t]=[]);return e},e.flattenListeners=function(t){for(var e=[],i=0;i{var n="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;function e(t){if(t){if("string"==typeof r[t])return t;var e;t=t.charAt(0).toUpperCase()+t.slice(1);for(var i=0,o=n.length;i{function O(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}var C="undefined"==typeof console?function(){}:function(t){console.error(t)},D=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function t(S){var b,T,R,P=!1;return function(t){var e,i;if(!P&&(P=!0,e=M.getComputedStyle,i=e?function(t){return e(t,null)}:function(t){return t.currentStyle},b=function(t){t=i(t);return t||C("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t},T=S("boxSizing"))&&((_=document.createElement("div")).style.width="200px",_.style.padding="1px 2px 3px 4px",_.style.borderStyle="solid",_.style.borderWidth="1px 2px 3px 4px",_.style[T]="border-box",(v=document.body||document.documentElement).appendChild(_),l=b(_),R=200===O(l.width),v.removeChild(_)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var o=b(t);if("none"===o.display){for(var n={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},r=0,s=D.length;r{var i=e.document,o=[];function n(t){"function"==typeof t&&(n.isReady?t():o.push(t))}function r(t){t="readystatechange"===t.type&&"complete"!==i.readyState;n.isReady||t||s()}function s(){n.isReady=!0;for(var t=0,e=o.length;t{var t,i=(()=>{if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],e=0,i=t.length;e{"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(t,e){return o(i,t,e)}):"object"==typeof exports?module.exports=o(i,require("doc-ready"),require("desandro-matches-selector")):i.fizzyUIUtils=o(i,i.docReady,i.matchesSelector)})(window,function(c,t,p){var i,l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Object.prototype.toString,d=(l.isArray=function(t){return"[object Array]"==e.call(t)},l.makeArray=function(t){var e=[];if(l.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,o=t.length;i{"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(t,e,i,o){return r(n,t,e,i,o)}):"object"==typeof exports?module.exports=r(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=r(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))})(window,function(t,e,i,r,o){var n=t.getComputedStyle,s=n?function(t){return n(t,null)}:function(t){return t.currentStyle};var a=r("transition"),t=r("transform"),t=a&&t,h=!!r("perspective"),p={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[a],u=["transform","transition","transitionDuration","transitionProperty"],c=(()=>{for(var t={},e=0,i=u.length;e{for(var e in t)return;return 1})(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},l.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(p,this,!1),this.isTransitioning=!1},l.prototype._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:""});return l.prototype.removeTransitionStyles=function(){this.css(f)},l.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.prototype.remove=function(){var t;a&&parseFloat(this.layout.options.transitionDuration)?((t=this).once("transitionEnd",function(){t.removeElem()}),this.hide()):this.removeElem()},l.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},l.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.prototype.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},l.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},l.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l}),((r,s)=>{"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,o,n){return s(r,t,e,i,o,n)}):"object"==typeof exports?module.exports=s(r,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):r.Outlayer=s(r,r.eventie,r.EventEmitter,r.getSize,r.fizzyUIUtils,r.Outlayer.Item)})(window,function(t,e,i,n,r,o){function s(){}var a=t.console,h=t.jQuery,p=0,u={};function c(t,e){var i=r.getQueryElement(t);i?(this.element=i,h&&(this.$element=h(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(e),e=++p,this.element.outlayerGUID=e,(u[e]=this)._create(),this.options.isInitLayout&&this.layout()):a&&a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return c.namespace="outlayer",c.Item=o,c.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},r.extend(c.prototype,i.prototype),c.prototype.option=function(t){r.extend(this.options,t)},c.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},c.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},c.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0,r=e.length;n{"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))})(window,function(t){function e(){t.Item.apply(this,arguments)}(e.prototype=new t.Item)._create=function(){this.id=this.layout.itemGUID++,t.Item.prototype._create.call(this),this.sortData={}},e.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var o=i[t];this.sortData[t]=o(this.element,this)}}};var i=e.prototype.destroy;return e.prototype.destroy=function(){i.apply(this,arguments),this.css({display:""})},e}),((t,e)=>{"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))})(window,function(e,i){function o(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}for(var t=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,r=t.length;nfunction(){return i.prototype[t].apply(this.isotope,arguments)})(s)}return o.prototype.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},o.prototype.getSegmentSize=function(t,e){var i,t=t+e,o="outer"+e;this._getMeasurement(t,o),this[t]||(i=this.getFirstItemSize(),this[t]=i&&i[o]||this.isotope.size["inner"+e])},o.prototype.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},o.modes={},o.create=function(t,e){function i(){o.apply(this,arguments)}return i.prototype=new o,e&&(i.options=e),o.modes[i.prototype.namespace=t]=i},o}),((t,e)=>{"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)})(window,function(t,a,h){t=t.create("masonry");return t.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},t.prototype.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},t.prototype._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),e=this._getColGroup(e),i=Math.min.apply(Math,e),o=h.indexOf(e,i),n={x:this.columnWidth*o,y:i},r=i+t.size.outerHeight,s=this.cols+1-e.length,a=0;a{"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)})(window,function(t,e){var i,t=t.create("masonry"),o=t.prototype._getElementOffset,n=t.prototype.layout,r=t.prototype._getMeasurement,s=t.prototype,a=e.prototype;for(i in a)s[i]=a[i];t.prototype._getElementOffset=o,t.prototype.layout=n,t.prototype._getMeasurement=r;var h=t.prototype.measureColumns,p=(t.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,h.call(this)},t.prototype._manageStamp);return t.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,p.apply(this,arguments)},t}),((t,e)=>{"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)})(window,function(t){t=t.create("fitRows");return t.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},t.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,i=(0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY),{x:this.x,y:this.y});return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},t.prototype._getContainerSize=function(){return{height:this.maxY}},t}),((t,e)=>{"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)})(window,function(t){t=t.create("vertical",{horizontalAlignment:0});return t.prototype._resetLayout=function(){this.y=0},t.prototype._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},t.prototype._getContainerSize=function(){return{height:this.y}},t}),((s,a)=>{"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(t,e,i,o,n,r){return a(s,t,0,i,o,n,r)}):"object"==typeof exports?module.exports=a(s,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):s.Isotope=a(s,s.Outlayer,0,s.matchesSelector,s.fizzyUIUtils,s.Isotope.Item,s.Isotope.LayoutMode)})(window,function(t,o,e,i,r,n,s){var a=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},p=document.documentElement.textContent?function(t){return t.textContent}:function(t){return t.innerText},u=o.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),c=(u.Item=n,u.LayoutMode=s,u.prototype._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),o.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(t)},u.prototype.reloadItems=function(){this.itemGUID=0,o.prototype.reloadItems.call(this)},u.prototype._itemize=function(){for(var t=o.prototype._itemize.apply(this,arguments),e=0,i=t.length;ee?function(t){return t.getAttribute(e)}:function(t){t=t.querySelector(i);return t&&p(t)})(o&&o[1],i),t=(r=u.sortDataParsers[e[1]])?function(t){return t&&r(n(t))}:function(t){return t&&n(t)}),t});u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},u.prototype._sort=function(){var t,a,h,e=this.options.sortBy;e&&(t=[].concat.apply(e,this.sortHistory),a=t,h=this.options.sortAscending,this.filteredItems.sort(function(t,e){for(var i=0,o=a.length;i{function i(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}function e(t,e){(o(t,e)?r:n)(t,e)}var o,n,r="classList"in document.documentElement?(o=function(t,e){return t.classList.contains(e)},n=function(t,e){t.classList.add(e)},function(t,e){t.classList.remove(e)}):(o=function(t,e){return i(e).test(t.className)},n=function(t,e){o(t,e)||(t.className=t.className+" "+e)},function(t,e){t.className=t.className.replace(i(e)," ")}),s={hasClass:o,addClass:n,removeClass:r,toggleClass:e,has:o,add:n,remove:r,toggle:e};"function"==typeof define&&define.amd?define("classie/classie",s):"object"==typeof exports?module.exports=s:t.classie=s})(window),(t=>{function e(){function a(t){for(var e in a.defaults)this[e]=a.defaults[e];for(e in t)this[e]=t[e]}return(i.Rect=a).defaults={x:0,y:0,width:0,height:0},a.prototype.contains=function(t){var e=t.width||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+(t.height||0)},a.prototype.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,o=t.x+t.width;return this.xt.x&&this.yt.y},a.prototype.getMaximalFreeRects=function(t){var e,i,o,n,r,s;return!!this.overlaps(t)&&(i=[],o=this.x+this.width,n=this.y+this.height,r=t.x+t.width,s=t.y+t.height,this.y=t.width&&this.height>=t.height},a}var i=t.Packery=function(){};"function"==typeof define&&define.amd?define("packery/js/rect",e):"object"==typeof exports?module.exports=e():(t.Packery=t.Packery||{},t.Packery.Rect=e())})(window),(t=>{function e(e){function t(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}t.prototype.reset=function(){this.spaces=[],this.newSpaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=i[this.sortDirection]||i.downwardLeftToRight},t.prototype.pack=function(t){for(var e=0,i=this.spaces.length;e{function e(t,e,i){function o(){e.Item.apply(this,arguments)}var n=t("transform"),r=(o.prototype=new e.Item)._create;return o.prototype._create=function(){r.call(this),this.rect=new i,this.placeRect=new i},o.prototype.dragStart=function(){this.getPosition(),this.removeTransitionStyles(),this.isTransitioning&&n&&(this.element.style[n]="none"),this.getSize(),this.isPlacing=!0,this.needsPositioning=!1,this.positionPlaceRect(this.position.x,this.position.y),this.isTransitioning=!1,this.didDrag=!1},o.prototype.dragMove=function(t,e){this.didDrag=!0;var i=this.layout.size;t-=i.paddingLeft,this.positionPlaceRect(t,e-=i.paddingTop)},o.prototype.dragStop=function(){this.getPosition();var t=this.position.x!==this.placeRect.x,e=this.position.y!==this.placeRect.y;this.needsPositioning=t||e,this.didDrag=!1},o.prototype.positionPlaceRect=function(t,e,i){this.placeRect.x=this.getPlaceRectCoord(t,!0),this.placeRect.y=this.getPlaceRectCoord(e,!1,i)},o.prototype.getPlaceRectCoord=function(t,e,i){var o=e?"Width":"Height",n=this.size["outer"+o],r=this.layout[e?"columnWidth":"rowHeight"],o=this.layout.size["inner"+o];return e||(o=Math.max(o,this.layout.maxY),this.layout.rowHeight)||(o-=this.layout.gutter),e=r?(r+=this.layout.gutter,o+=e?this.layout.gutter:0,t=Math.round(t/r),e=this.layout.options.isHorizontal?e?"ceil":"floor":e?"floor":"ceil",e=Math[e](o/r),e-=Math.ceil(n/r)):o-n,t=i?t:Math.min(t,e),t*=r||1,Math.max(0,t)},o.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x,this.rect.y=this.placeRect.y},o.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},o}"function"==typeof define&&define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],e):"object"==typeof exports?module.exports=e(require("desandro-get-style-property"),require("outlayer"),require("./rect")):t.Packery.Item=e(t.getStyleProperty,t.Outlayer,t.Packery.Rect)})(window),(t=>{function e(s,o,t,i,e,n){function r(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function a(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}i.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var h=t.create("packery");return h.Item=n,h.prototype._create=function(){t.prototype._create.call(this),this.packer=new e,this.stamp(this.options.stamped);var i=this;this.handleDraggabilly={dragStart:function(t){i.itemDragStart(t.element)},dragMove:function(t){i.itemDragMove(t.element,t.position.x,t.position.y)},dragEnd:function(t){i.itemDragEnd(t.element)}},this.handleUIDraggable={start:function(t){i.itemDragStart(t.currentTarget)},drag:function(t,e){i.itemDragMove(t.currentTarget,e.position.left,e.position.top)},stop:function(t){i.itemDragEnd(t.currentTarget)}}},h.prototype._resetLayout=function(){this.getSize(),this._getMeasurements();var t=this.packer;this.options.isHorizontal?(t.width=Number.POSITIVE_INFINITY,t.height=this.size.innerHeight+this.gutter,t.sortDirection="rightwardTopToBottom"):(t.width=this.size.innerWidth+this.gutter,t.height=Number.POSITIVE_INFINITY,t.sortDirection="downwardLeftToRight"),t.reset(),this.maxY=0,this.maxX=0},h.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},h.prototype._getItemLayoutPosition=function(t){return this._packItem(t),t.rect},h.prototype._packItem=function(t){this._setRectSize(t.element,t.rect),this.packer.pack(t.rect),this._setMaxXY(t.rect)},h.prototype._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},h.prototype._setRectSize=function(t,e){var t=o(t),i=t.outerWidth,t=t.outerHeight;(i||t)&&(i=this._applyGridGutter(i,this.columnWidth),t=this._applyGridGutter(t,this.rowHeight)),e.width=Math.min(i,this.packer.width),e.height=Math.min(t,this.packer.height)},h.prototype._applyGridGutter=function(t,e){var i;return e?(i=t%(e+=this.gutter),Math[i&&i<1?"round":"ceil"](t/e)*e):t+this.gutter},h.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},h.prototype._manageStamp=function(t){var e=this.getItem(t);e=e&&e.isPlacing?e.placeRect:(e=this._getElementOffset(t),new i({x:this.options.isOriginLeft?e.left:e.right,y:this.options.isOriginTop?e.top:e.bottom})),this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},h.prototype.sortItemsByPosition=function(){var t=this.options.isHorizontal?a:r;this.items.sort(t)},h.prototype.fit=function(t,e,i){t=this.getItem(t);t&&(this._getMeasurements(),this.stamp(t.element),t.getSize(),t.isPlacing=!0,e=void 0===e?t.rect.x:e,i=void 0===i?t.rect.y:i,t.positionPlaceRect(e,i,!0),this._bindFitEvents(t),t.moveTo(t.placeRect.x,t.placeRect.y),this.layout(),this.unstamp(t.element),this.sortItemsByPosition(),t.isPlacing=!1,t.copyPlaceRectPosition())},h.prototype._bindFitEvents=function(t){function e(){2===++o&&i.emitEvent("fitComplete",[i,t])}var i=this,o=0;t.on("layout",function(){return e(),!0}),this.on("layoutComplete",function(){return e(),!0})},h.prototype.resize=function(){var t=o(this.element),e=this.size&&t,i=this.options.isHorizontal?"innerHeight":"innerWidth";e&&t[i]===this.size[i]||this.layout()},h.prototype.itemDragStart=function(t){this.stamp(t);t=this.getItem(t);t&&t.dragStart()},h.prototype.itemDragMove=function(t,e,i){var t=this.getItem(t),o=(t&&t.dragMove(e,i),this);this.clearDragTimeout(),this.dragTimeout=setTimeout(function(){o.layout(),delete o.dragTimeout},40)},h.prototype.clearDragTimeout=function(){this.dragTimeout&&clearTimeout(this.dragTimeout)},h.prototype.itemDragEnd=function(t){var e,i=this.getItem(t);i&&(e=i.didDrag,i.dragStop()),i&&(e||i.needsPositioning)?(s.add(i.element,"is-positioning-post-drag"),e=this._getDragEndLayoutComplete(t,i),i.needsPositioning?(i.on("layout",e),i.moveTo(i.placeRect.x,i.placeRect.y)):i&&i.copyPlaceRectPosition(),this.clearDragTimeout(),this.on("layoutComplete",e),this.layout()):this.unstamp(t)},h.prototype._getDragEndLayoutComplete=function(t,e){var i=e&&e.needsPositioning,o=0,n=i?2:1,r=this;return function(){return++o!==n||(e&&(s.remove(e.element,"is-positioning-post-drag"),e.isPlacing=!1,e.copyPlaceRectPosition()),r.unstamp(t),r.sortItemsByPosition(),i&&r.emitEvent("dragItemPositioned",[r,e])),!0}},h.prototype.bindDraggabillyEvents=function(t){t.on("dragStart",this.handleDraggabilly.dragStart),t.on("dragMove",this.handleDraggabilly.dragMove),t.on("dragEnd",this.handleDraggabilly.dragEnd)},h.prototype.bindUIDraggableEvents=function(t){t.on("dragstart",this.handleUIDraggable.start).on("drag",this.handleUIDraggable.drag).on("dragstop",this.handleUIDraggable.stop)},h.Rect=i,h.Packer=e,h}"function"==typeof define&&define.amd?define("packery/js/packery",["classie/classie","get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],e):"object"==typeof exports?module.exports=e(require("desandro-classie"),require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):t.Packery=e(t.classie,t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)})(window),(t=>{function e(t,e,o){var i,t=t.create("packery"),n=t.prototype._getElementOffset,r=t.prototype._getMeasurement,s=t.prototype,a=e.prototype;for(i in a)s[i]=a[i];t.prototype._getElementOffset=n,t.prototype._getMeasurement=r;var h=t.prototype._resetLayout,p=(t.prototype._resetLayout=function(){this.packer=this.packer||new e.Packer,h.apply(this,arguments)},t.prototype._getItemLayoutPosition),u=(t.prototype._getItemLayoutPosition=function(t){return t.rect=t.rect||new e.Rect,p.call(this,t)},t.prototype._manageStamp);return t.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,u.apply(this,arguments)},t.prototype.needsResizeLayout=function(){var t=o(this.element),e=this.size&&t,i=this.options.isHorizontal?"innerHeight":"innerWidth";return e&&t[i]!==this.size[i]},t}"function"==typeof define&&define.amd?define(["isotope/js/layout-mode","packery/js/packery","get-size/get-size"],e):"object"==typeof exports?module.exports=e(require("isotope-layout/js/layout-mode"),require("packery"),require("get-size")):e(t.Isotope.LayoutMode,t.Packery,t.getSize)})(window);